package com.cloud.feign.service.impl;

import com.cloud.feign.service.RoleFeignService;
import com.yingxue.lesson.entity.SysRole;
import com.yingxue.lesson.exception.code.BaseResponseCode;
import com.yingxue.lesson.utils.DataResult;
import com.yingxue.lesson.vo.req.RolePageReqVo;
import com.yingxue.lesson.vo.resp.PageVO;
import org.springframework.stereotype.Component;

/**
 * @author lai
 * @version 1.0
 * @date 2021/5/30 16:38
 * @description
 */
//@Component
public class HystrixFallBackService implements RoleFeignService {

    @Override
    public DataResult<PageVO<SysRole>> pageInfo(RolePageReqVo vo) {
        System.out.println("..........................................");
        return DataResult.getResult(BaseResponseCode.OPERATION_ERROR);
    }
}
